#include <stdio.h>

int main() {
    int i, n;

    printf("This program prints a table of squares.\n");
    printf("Enter number of entries in table: ");
    scanf("%d", &n);
    getchar(); // 读入上面按下的回车键

    for (i = 1; i <= n; i++){
        printf("%30hd%30hd\n", i, i * i);

        if (i % 24 == 0){
            printf("Press Enter to continue...");
            while (getchar() != '\n') ;
        }
    }

    return 0;
}
